package model.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import utils.FNVHash;


/**
 * The persistent class for the vehicle database table.
 * 
 */
public class MsgVehicle implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public Long hashid;

	public Long getHashid() {
		return FNVHash.hash64(orgcode+vehicleno);
	}

	public String busbrand;

	@Temporal(TemporalType.TIMESTAMP)
	public Long createtime;

	public String orgcode;

	public Integer rationseatnum;

	public Integer seatnum;

	@Temporal(TemporalType.TIMESTAMP)
	public Long updatetime;

	public String vehiclelvl;

	public String vehicleno;

	public String vehicletype;

	@Temporal(TemporalType.DATE)
	public Date factorydate;

	public String unitname;

	public MsgVehicle(Long id,String busbrand, Long createtime,
			String orgcode, Integer rationseatnum, Integer seatnum,
			Long updatetime, String vehiclelvl, String vehicleno,
			String vehicletype, Date factorydate, String unitname) {
		super();
		this.hashid = getHashid();
		this.busbrand = busbrand;
		this.createtime = createtime;
		this.orgcode = orgcode;
		this.rationseatnum = rationseatnum;
		this.seatnum = seatnum;
		this.updatetime = updatetime;
		this.vehiclelvl = vehiclelvl;
		this.vehicleno = vehicleno;
		this.vehicletype = vehicletype;
		this.factorydate = factorydate;
		this.unitname = unitname;
	}

}